package aima.search;

import aima.cs.util.*;

/** 
   Comparison function for A* search nodes.
*/

public final class AStarPredicate implements BinaryPredicate {

    public boolean evaluate(Object object1, Object object2) {

        return ( (HeuristicSearchNode) object1).getF()
             > ( (HeuristicSearchNode) object2).getF();

    }

}

